<?php
namespace Admin\Controller;

class KeywordController extends CommonController{
	public  $exec_comfunc = 'index,add,edit,delete';//index,add,edit,delete
	
	public function _initialize(){
		parent::_initialize();
		$type = $this->_get('type');
		$this->_jump_url = U('index', array('type' => $type));
		$this->_db_where['module'] = $type;
	}
	public function add(){
		if(IS_POST){
			$content = $this->_post('content');
			$data['md5'] = md5($content);
		}
		parent::add('', $data);
	}
}
